Skip to content

Conversation

nessotrin
Copy link
Contributor

Summary

This PR adds the ability to compile for STM32C051xx based boards. Most of the infrastructure was already there.
The STM32C051xx is a recently upgraded version of the STM32C031xx with 2x more flash.

  • Add ldscript (direct copy from STM32C031xx)
  • Fix #ifdef missing the STM32C051xx

The link script still mentions the STM32C031CxTx. Since it is auto-generated I chose to leave it as is. Someone with STM32CubeIDE could generate a new one, but I suspect there would be no difference whatsoever.

Copy link
Member

@fpistm fpistm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First thanks for your contribution,
It misses several update to be properly added:

  • Reference all the entries in the boards.txt
  • Reference in the README.md
  • Add a default clock config

@fpistm
Copy link
Member

fpistm commented Oct 17, 2025

I've submitted issue for the AF0: STMicroelectronics/stm32c0xx-hal-driver#4

nessotrin and others added 2 commits October 20, 2025 11:19
Signed-off-by: Nessotrin <[email protected]>
Co-authored-by: Frederic Pillon <[email protected]>
Copy link
Member

@fpistm fpistm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @nessotrin
I've rework your PR to not modify the HAL GPIO.
I've also completed the STM32C051C addition.

@github-project-automation github-project-automation bot moved this from In progress to Reviewer approved in STM32 core based on ST HAL Oct 20, 2025
@fpistm fpistm marked this pull request as ready for review October 20, 2025 09:21
@fpistm fpistm merged commit c1ee060 into stm32duino:main Oct 20, 2025
24 of 28 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer approved to Done in STM32 core based on ST HAL Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new variant Add support of new bard

Projects

Development

Successfully merging this pull request may close these issues.

2 participants